package com.ef.service;

import java.util.List;

import com.ef.domain.Contract;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public interface ContractService extends BaseService {

	public PaginationSupport<Contract> findByExample(
			CustomExample<Contract> example, int startIndex, int pageSize);
	
	public void saveOrUpdate(Contract entity);
	
	public void delete(Contract entity);
	
	public Contract findById(Long id);
	
	public List<Contract>  findDuplicateContract(Long contractId,Long leadsid);
	
	public List<Contract>  findValidContract(Long leadsid);
}
